<template>
  <!--参考页 https://m.vip.com/product-1710616665-6919701487540448345.html -->
    <div id="detail">
        <img :src='img'>
    </div>

</template>

<script>
export default {
  name: "CommodityDetail",
  data() {
    return {
        img:'https://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvop/00115128/10001155/903534495-1093044331794329600-1093044331794329602-50_420_531_512x648_90.jpg'
    };
  },
  mounted() {
    console.log(this.$route.params);
    let params = this.$route.params;
    for (var key in params) {
      this[key] = params[key];
    }
  }
};
</script>

<style>
img {
}
</style>